package me.w70.fps.constants;

public class Angles {
	// Game window width + height
	public int WINDOW_WIDTH;
	public int WINDOW_HEIGHT;
	// Rendering area width + height
	public int PROJECTIONPLANEWIDTH;
	public int PROJECTIONPLANEHEIGHT;
	// Constant angles
	public int ANGLE60;
	public int ANGLE30;
	public int ANGLE15;
	public int ANGLE90;
	public int ANGLE180;
	public int ANGLE270;
	public int ANGLE360;
	public int ANGLE0;
	public int ANGLE5;
	public int ANGLE10;
	
	public Angles(int width, int height) {
		WINDOW_WIDTH = width;
		WINDOW_HEIGHT = height;
		
		PROJECTIONPLANEWIDTH = WINDOW_WIDTH;
		PROJECTIONPLANEHEIGHT = WINDOW_HEIGHT;
		
		ANGLE60 = PROJECTIONPLANEWIDTH;
		ANGLE30 = (ANGLE60 / 2);
		ANGLE15 = (ANGLE30 / 2);
		ANGLE90 = (ANGLE30 * 3);
		ANGLE180 = (ANGLE90 * 2);
		ANGLE270 = (ANGLE90 * 3);
		ANGLE360 = (ANGLE60 * 6);
		ANGLE0 = 0;
		ANGLE5 = (ANGLE30 / 6);
		ANGLE10 = (ANGLE5 * 2);	
	}
}
